var itemcomp = null;

function addItem(node)
{
    if ( itemcomp === null )
        itemcomp = Qt.createComponent("NodeItem.qml");

    if ( itemcomp.status == Component.Ready )
    {

    }
    else
    {
        console.log("error loading component");
        console.log(itemcomp.errorString());
        return false;
    }
}
